package com.lagou.client;

import com.lagou.service.UserService;

public class ClientBootstrap {

    public static final String providerName = "UserService#sayHello#";

    public static void main(String[] args) throws InterruptedException {
        RpcConsumer rpcConsumer = new RpcConsumer();
        UserService proxy = (UserService)rpcConsumer.createProxy(UserService.class, "userServiceImpl", "sayHello");
        while(true) {
            System.out.println(proxy.sayHello("are you ok?"));
            Thread.sleep(10000);
        }
    }
}
